<script setup>
import useUserStore from '../src/store/modules/user'
import usestore from '@/store/modules/user.js'
let as= useUserStore()
console.log(as);
let store =usestore()

console.log(store.menuRoutes);

let ddde=function(){
  store.demo()
  console.log(store.menuRoutes);


}
</script>

<template>
  <div>
    <h1>App</h1>
    <el-button type="primary">button</el-button>
  </div>

  <div class="app-container">
    <ul>
      <!-- router-link 是用来实现路由跳转 -->
      <li><router-link to="/login">登录</router-link></li>
      <li><router-link to="/home">首页</router-link></li>
    </ul>
    <!-- router-view 是用来显示路由对应的内容 -->
    <router-view />
  </div>

  <button @click="ddde">111111</button>

</template>

<style scoped>
.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vue:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}
</style>
